characteristic polynomial and Minimal Polynomial of the matrix in few seconds